import { axios } from '@/utils/request'

//查询短信发送记录
export function getSmsRecordList (parameter) {
    return axios({
        url: '/smsRecord/query',
        method: 'post',
        data: parameter
    })
}


//添加短信发送记录
export function createSmsRecord (parameter) {
    return axios({
        url: '/smsRecord/insert',
        method: 'post',
        data: parameter
    })
}


//删除短信发送记录
export function deleteSmsRecord (id) {
    return axios({
        url: '/smsRecord/delete/' + id,
        method: 'post'
    })
}

//更改短信发送记录
export function updateSmsRecord (parameter) {
    return axios({
        url: '/smsRecord/up/' + parameter.id,
        method: 'post',
        data: parameter
    })
}
//查询停水公告
export function waterOff (parameter) {
  return axios({
    url: '/waterOff/query',
    method: 'post',
    data: parameter
  })
}
//添加停水公告
export function waterOffInsert(parameter) {
  return axios({
    url: '/waterOff/insert',
    method: 'post',
    data: parameter
  })
}
//删除停水公告
export function waterOffDelete(parameter) {
  return axios({
    url: '/waterOff/delete/' + parameter.id,
    method: 'post',
    data: parameter
  })
}